package com.hx.annotation;

/**
 * @author jxlgcmh
 * @create 2019-05-12 10:14
 */
@MyAnnotation(getList = {"what", "do", "you", "want", "do"})
public class AnnotationDemo1 {
    public static void main(String[] args) {
        MyAnnotation annotation = AnnotationDemo1.class.getAnnotation(MyAnnotation.class);
        String value = annotation.value();
        String[] list = annotation.getList();
        System.out.println(value);
        for (String s : list) {
            System.out.print(s + "\t");
        }
    }
}
